#pragma once

#include <cstdint>
#include <string>

void ErrorIf(bool condition, const char *msg);

/**
 * @brief 获取线程id
 */
uint32_t GetThreadId();

/**
 * @brief 获取当前启动的毫秒数
 */
uint64_t GetElapsedMS();

/**
 * @brief 获取当前线程名称
 */
std::string GetThreadName();

/**
 * @brief 设置当前线程名称
 */
void SetThreadName(const std::string &name);